#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int k = 0;
int n = 0;
void print()
{
	scanf("%d%d", &k, &n);
	int i = 0;
	int j = 0;
	for (i = 0; i < k; i++)
	{
		for (j = 0; j < n; j++)
		{
			printf("+");
		}
		printf("\n");
	}
}
int main()
{
	print();
	return 0;
}